package com.gjy.liteflow.flow;

import com.google.common.collect.Lists;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeIteratorComponent;
import lombok.extern.slf4j.Slf4j;

import java.util.Iterator;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-09-08 15:50:17
 */
@LiteflowComponent(value = "m")
@Slf4j
public class MCmp extends NodeIteratorComponent {
    @Override
    public Iterator<?> processIterator() throws Exception {
        Iterator<String> iterator = Lists.newArrayList("hello", "World").iterator();
        log.info("process m {}", iterator);
        return iterator;
    }
}
